package com.rookie.jeesdp.entity.common;

import java.util.Map;
import java.util.Set;

public class Tree {

    private TreeNode treeNode;
    private Set<String> expanded;
    private Set<String> checked;
    private Map<String, String> props;

    public Set<String> getExpanded() {
        return expanded;
    }

    public void setExpanded(Set<String> expanded) {
        this.expanded = expanded;
    }

    public Set<String> getChecked() {
        return checked;
    }

    public void setChecked(Set<String> checked) {
        this.checked = checked;
    }

    public Map<String, String> getProps() {
        return props;
    }

    public void setProps(Map<String, String> props) {
        props.putIfAbsent("children", "children");
        props.putIfAbsent("label", "label");
        this.props = props;
    }

    public TreeNode getTreeNode() {
        return treeNode;
    }

    public void setTreeNode(TreeNode treeNode) {
        this.treeNode = treeNode;
    }
}
